<div class="modal fade" id="edit">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <form #editForm="ngForm" name="editForm" (ngSubmit)="_onSubmit(editForm.value)">
                <!-- 模态框头部 -->
                <div class="modal-header">
                    <h4 class="modal-title">主题词表 - 编辑</h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- 模态框主体 -->
                <div class="modal-body" >
                    <div class="container" id="details" name="details" *ngIf="details">

                        <input type="text"
                               name="themeTableId"
                               hidden="visible"
                               #themeTableId="ngModel"
                               [ngModel]="details.themeTableId"
                        />

                        <div class="input_div" style="display:none">
                            <label class="input_title">上层主题词表：</label>
                            <select class="input_inputStyle" disabled>
                                <option value="" name="parentThemeName"></option>
                            </select>
                        </div>
                        <div class="input_div">
                            <label class="input_title">主题词表名称：</label>
                            <input class="input_inputStyle"
                                   name="name"
                                   required
                                   #name="ngModel"
                                   [ngModel]="details.name"
                                   placeholder="请输入主题词表名称"
                            >
                        </div>
                        <div class="input_div">
                            <label class="input_title">选择标签：</label>
                            <select class="input_inputStyle" name="labelId" #labelId="ngModel" [ngModel]="details.labelId">
                                <option value=""></option>
                                <option *ngFor="let val of themeTableTagListVal" value="{{ val.labelId }}">{{ val.labelName }}</option>
                            </select>
                        </div>
                        <div class="input_div">
                            <label class="input_title">主题词表编号：</label>
                            <input type="text" name="themeTableCode" #themeTableCode="ngModel" class="input_inputStyle" [ngModel]="details.themeTableCode" placeholder="输入主题词表编号"
                                required />
                            <span class="keyword_error" *ngIf="themeTableCode.invalid && (themeTableCode.touched) && themeTableCode.errors.pattern">主题词表编号不能为汉字,特殊符号，允许输入_</span>
                        </div>
                        <div class="input_div">
                            <label class="input_title">是否启用：</label>
                            <select class="input_inputStyle"  name="status" #status=ngModel [(ngModel)]="details.status">
                                <option value="0" name="status"  inputId="status1">启用</option>
                                <option value="-1" name="status"  inputId="status0">禁用</option>
                            </select>
                        </div>
                        <div class="input_div">
                            <div class="textarea_title">描述：</div>
                            <textarea rows="4"
                                      type="text"
                                      name="description"
                                      class="textarea_textareaStyle"
                                      #description
                                      [ngModel]="details.description"
                            >
                            </textarea>
                        </div>
                    </div>
                </div>
                <!-- 模态框底部 -->
                <div class="modal-footer" style="width: 100%;">
                    <button type="submit" class="btn btn-primary" [disabled]="editForm.invalid">确定</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal" (click)="initService._init()">取消</button>
                </div>
            </form>
        </div>

    </div>
</div>